package com.gjsh.b_recursion;

public class Demo02 {
    public static void main(String[] args) {
//        recursion(3);
        System.out.println(recursion(3));
    }

    public static int recursion(int n) {
        if (n == 1) {
            return 1;
        }
        return n * recursion(n - 1);
    }
}
